package cn.i7baozh.boot.learn.initializer.processor;

import cn.i7baozh.boot.learn.initializer.config.MyConfig;
import org.springframework.context.ApplicationListener;

/**
 * @author zhangbaoqi532
 * @date 2025/2/19
 */
public class ConfigChangeListener implements ApplicationListener<ConfigChangeDTO> {
    @Override
    public void onApplicationEvent(ConfigChangeDTO event) {
        MyConfig.setProperty(event.getSource().toString(), event.getValue());
    }
}
